package com.htstar.ovms.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.htstar.ovms.common.core.util.R;
import com.htstar.ovms.device.api.entity.CarFenceRelation;
import com.htstar.ovms.device.api.entity.DeviceOta;
import com.htstar.ovms.device.api.wrapper.OTAData;

import java.util.ArrayList;
import java.util.List;

public interface OTAUpdateService extends IService<DeviceOta> {
    R updateBatch(OTAData req);

    void updateCommandSendStatus(String deviceSn, Integer status);

    void otaUpdateSuccess(String deviceSn, Integer status);

    boolean isRetry(String deviceSn);

    public void updateHoldOn(List<String> holdONList, Integer status);

    void updateFailureTime(OTAData otaData);
}
